<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

$route['default_controller'] = "login_c";
$route['login'] = 'login_c';
$route['login/validate'] = 'login_c/validate_user';
$route['logout'] = 'login_c/logout';

$route['dashboard'] = 'dashboard_c';

$route['my-account'] = 'my_account_c';
$route['my_account/update'] = 'my_account_c/update_my_account';
$route['my_account/check_old_pass'] = 'my_account_c/check_old_pass';
$route['my_account/change_pass'] = 'my_account_c/change_password';

$route['messages'] = 'messages_c';
$route['message/save'] = 'messages_c/send_message';
$route['messages/sentbox'] = 'messages_c/sentbox';
$route['messages/send_message'] = 'messages_c/send_message';
$route['messages/inbox/new_message'] = 'messages_c/new_message';
$route['messages/inbox/reply_message/(:num)'] = 'messages_c/reply_message/$1';
$route['messages/inbox/delete_message/(:num)'] = 'messages_c/delete_message/$1';
$route['messages/inbox/view_message/(:num)/(:num)'] = 'messages_c/view_message/$1/$2';
$route['messages/inbox/forward_message/(:num)'] = 'messages_c/forward_message/$1';
$route['messages/sentbox/new_message'] = 'messages_c/new_message';
$route['messages/sentbox/delete_message/(:num)'] = 'messages_c/delete_message/$1';
$route['messages/sentbox/view_message/(:num)/(:num)'] = 'messages_c/view_message/$1/$2';
$route['messages/sentbox/forward_message/(:num)'] = 'messages_c/forward_message/$1';
$route['messages/delete'] = 'messages_c/delete_message';

$route['contacts'] = 'contacts_c';
$route['contact/clients'] = 'contacts_c/clients';
$route['clients/get'] = 'contacts_c/clients_ajax';
$route['client/save'] = 'contacts_c/save_client';
$route['client/delete'] = 'contacts_c/delete_client';
$route['client/view/(:num)'] = 'contacts_c/view_client/$1';
$route['contact/clients/validate_pass'] = 'my_account_c/check_old_pass';

$route['contact/employees'] = 'contacts_c/employees';
$route['employees/get'] = 'contacts_c/employees_ajax';
$route['employee/save'] = 'contacts_c/save_employee';
$route['employee/view/(:num)'] = 'contacts_c/view_employee/$1';
$route['employee/delete'] = 'contacts_c/delete_employee';
$route['contact/employees/validate_pass'] = 'my_account_c/check_old_pass';

$route['contact/supplier'] = 'contacts_c/supplier';
$route['supplier/get'] = 'contacts_c/supplier_ajax';
$route['supplier/save'] = 'contacts_c/save_supplier';
$route['supplier/view/(:num)'] = 'contacts_c/view_supplier/$1';
$route['contact/supplier/update'] = 'contacts_c/update_supplier';
$route['supplier/delete'] = 'contacts_c/delete_supplier';
$route['contact/supplier/validate_pass'] = 'my_account_c/check_old_pass';

$route['resource'] = 'resource_c';
$route['files/filter/(:num)'] = 'resource_c/filter_files/$1';
$route['files/documents/get'] = 'resource_c/documents_ajax';
$route['files/reports/get'] = 'resource_c/reports_ajax';
$route['file/upload'] = 'resource_c/upload_file';
$route['files/delete'] = 'resource_c/delete_file';

$route['resource/general-checklist'] = 'resource_c/general_checklist';
$route['general-checklist/get'] = 'resource_c/get_category';
$route['general-checklist/sub-cat/(:num)'] = 'resource_c/get_sub_category/$1';
$route['general-checklist/save-new-cat'] = 'resource_c/save_category';
$route['general-checklist/delete-cat/(:num)'] = 'resource_c/delete_category/$1';
$route['general-checklist/save-new-sub-cat'] = 'resource_c/save_sub_category';
$route['general-checklist/delete-sub-cat/(:num)'] = 'resource_c/delete_sub_category/$1';

$route['resource/venues'] = 'resource_c/venues';
$route['venues/get'] = 'resource_c/venues_ajax';
$route['venue/save'] = 'resource_c/save_venue';
$route['venue/edit/(:num)'] = 'resource_c/edit_venue/$1';
$route['venues/delete'] = 'resource_c/delete_venue';

$route['resource/event-types'] = 'resource_c/event_types';
$route['event-types/get'] = 'resource_c/event_types_ajax';
$route['event-type/save'] = 'resource_c/save_event_type';
$route['event-types/delete'] = 'resource_c/delete_event_type';

$route['events'] = 'event_c';
$route['events/calendar'] = 'event_c/calendar_view';
$route['events/calendar/(:num)/(:num)'] = 'event_c/calendar_view/$1/$2';
$route['events/list'] = 'event_c/list_view';
$route['event/event-detail'] = 'event_c/event_detail';
$route['event/event-supplier'] = 'event_c/event_supplier';
$route['event/event-checklist'] = 'event_c/event_checklist';
$route['event/event-task'] = 'event_c/event_task';
$route['event/task/save'] = 'event_c/save_event_task';

/*-------------------------------Special Routes-------------------------------*/
$route['messages/recipients'] = 'messages_c/recipients';
$route['messages/message/(:num)'] = 'messages_c/message/$1';
$route['messages/sender/(:num)'] = 'messages_c/sender/$1';
$route['messages/change-status/(:num)'] = 'messages_c/change_status/$1';
$route['messages/inbox-sentbox-num'] = 'messages_c/count_inbox_sentbox';
$route['event/task/fetch'] = 'event_c/event_task_ajax';
/* End of file routes.php */
/* Location: ./application/config/routes.php */